<?php /* Smarty version 2.6.26, created on 2018-07-05 14:44:48
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/api/oss_edit.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="cnav"><a href="javascript:;" class="back">对象存储</a></div>
<?php if ($this->_tpl_vars['error_status']): ?> 
	<div class="notice">
		<i><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/notice.png" width="20"/></i>
		<span>您当前的环境无法将文件上传到云端，上传文件需要socket扩展的支持，或选择本地储存。如有疑问，可以联系系统官方。</span>
	</div>
<?php endif; ?>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>云存储的接口配置请查看各个官方提供的接口数据。如在设置中遇到问题，请联系技术客服处理。</p> 
	</div> 
</div>
<div class="main"> 
<form action="?m=api&a=oss_save" method="post" id="form">
	<?php if ($this->_tpl_vars['row']['id']): ?><input type="hidden" name="id" value="<?php echo $this->_tpl_vars['row']['id']; ?>
" size="32"><?php endif; ?>	
	<table width="100%" class="etable">  
	  	<tr>
			<td width="100">别名：</td>
			<td><input disabled="disabled" type="text" value="<?php echo $this->_tpl_vars['row']['alias']; ?>
" size="50" name="alias"></td>
	  	</tr>
		<tr>
			<td>名称：</td>
			<td><input type="text" value="<?php echo $this->_tpl_vars['row']['name']; ?>
" size="50" name="name"></td>
	  	</tr> 
		<tr>
			<td>描述：</td>
			<td><input type="text" value="<?php echo $this->_tpl_vars['row']['describe']; ?>
" size="50" name="describe"></td>
	  	</tr>
		<?php if ($this->_tpl_vars['row']['param']): ?>
			<?php $_from = $this->_tpl_vars['row']['param']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['i']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['i']; ?>
：</td>
				<td><input type="text" value="<?php echo $this->_tpl_vars['row']['pcon'][$this->_tpl_vars['i']]; ?>
" size="50" name="param[<?php echo $this->_tpl_vars['i']; ?>
]"><i>必填</i></td>
			</tr>
			<?php endforeach; endif; unset($_from); ?> 
		<?php endif; ?>
		<tr>
			<td>bucket：</td>
			<td><input type="text" value="<?php echo $this->_tpl_vars['row']['bucket']; ?>
" size="50" name="bucket"><i>必填</i></td>
	  	</tr>
		<tr>
			<td>域名：</td>
			<td><input type="text" value="<?php echo $this->_tpl_vars['row']['host']; ?>
" size="50" name="host"><i>必填</i><p>填写第三方绑定的图片上传地址</p></td>
	  	</tr>
		<tr>
			<td>协议：</td>
			<td><input type="text" value="<?php echo $this->_tpl_vars['row']['https']; ?>
" size="50" name="https"><p>可以为空。特殊情况可以加入特定协议，如：http,https </p></td>
	  	</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="submit"  value="确认"/></td>
	  	</tr> 
	</table> 
</form>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>